import routeComponentName from '@/config/route-component-name'

export default [
  {
    path: '/enterprise/notice',
    component: () => import('@/layout/index.vue'),
    name: 'enterpriseNotice',
    meta: { title: '企业公告', icon: 'icon-enterprise-notice-04' },
    redirect: '/enterprise/notice/list',
    children: [
      {
        path: 'list',
        meta: {
          title: '企业公告',
          icon: 'icon-enterprise-notice-04',
          componentName: routeComponentName.enterpriseNotice.enterpriseNoticeList,
        },
        name: 'enterpriseNoticeList',
        component: () => import('@/views/enterprise-notice/List.vue'),
      },
      {
        path: 'create',
        meta: {
          title: '创建企业公告',
          componentName: routeComponentName.enterpriseNotice.enterpriseNoticeCreate,
        },
        name: 'enterpriseNoticeCreate',
        component: () => import('@/views/enterprise-notice/Create.vue'),
      },
      {
        path: 'update/:id',
        meta: {
          title: '编辑企业公告',
          componentName: routeComponentName.enterpriseNotice.enterpriseNoticeCreate,
        },
        name: 'enterpriseNoticeUpdate',
        component: () => import('@/views/enterprise-notice/Create.vue'),
      },
    ],
  },
]
